package com.volkanic.stages.menu;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.volkanic.stages.SharedStage;

/**
 * Created by Lucas on 24/07/2014.
 */
public class MenuWallpaperStage extends SharedStage {

    /**
     * Create a new instance of the class MenuWallpaperStage
     */
    public MenuWallpaperStage(String pathToTexture) {
        // Setup up the picture
        Texture night = new Texture(Gdx.files.internal(pathToTexture));

        Image nightSky = new Image(night);
        nightSky.setCenterPosition(X_CENTER, Gdx.graphics.getHeight() - (night.getHeight() / 2));

        this.addActor(nightSky);
    }
}
